// 抖音美好体 - 全局字体

@font-face {
  font-family: 'DouyinSans'
  font-style: normal
  font-weight: 700
  font-display: swap
  src: url(../fonts/DouyinSans/DouyinSansBold.ttf) format('truetype')
}

// JetBrains Mono - 仅用于代码
@font-face {
  font-family: 'JetBrains Mono'
  font-style: normal
  font-weight: 400
  font-display: swap
  src: url(../fonts/JetBrainsMono/JetBrainsMono-Regular.woff2) format('woff2')
}

@font-face {
  font-family: 'JetBrains Mono'
  font-style: normal
  font-weight: 700
  font-display: swap
  src: url(../fonts/JetBrainsMono/JetBrainsMono-Bold.woff2) format('woff2')
}

@font-face {
  font-family: 'JetBrains Mono'
  font-style: italic
  font-weight: 400
  font-display: swap
  src: url(../fonts/JetBrainsMono/JetBrainsMono-Italic.woff2) format('woff2')
}

// 应用全局字体
html {
  font-family: 'DouyinSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif
}

body, button, input, select, textarea {
  font-family: inherit
}

// 专门为代码元素应用编程字体
code, pre, .highlight pre, .hljs, .gutter pre {
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace !important
  font-feature-settings: "liga" 0 // 禁用连字以提高代码可读性
}
